import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/machine-test-data/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (machineTestDataId) => {
  return request({
    url: '/api/mes-product/machine-test-data/machine-test-result/list',
    method: 'get',
    params: {
      machineTestDataId
    }
  });
};

export const exportMachineTestResult = (params) => {
  return request({
    url: '/api/mes-docking/machine-test-data/exportAsync/machine_test_result',
    method: 'get',
    params: params
  });
};
